<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<ui:composition template="/WEB-INF/templates/padrao.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="cabecalho">
		<ui:include src="/WEB-INF/templates/menuBibli.xhtml" />
	</ui:define>


	<ui:define name="titulo">
		<h2 style="text-align: center">Atualizar Multa</h2>
	</ui:define>



	<ui:define name="conteudo">
		<div class="hero-unit">

			<h5 style="color: red">
				<h:outputLabel
					value="Último Leitor Atendido: [#{sessaoLeitorBean.login.id_usuario}]" />
			</h5>

			<h:panelGroup rendered="#{multaBean.msg.wmsg}">
				<div class="alert alert-block">
					<button type="button" class="close" data-dismiss="alert">x</button>
					<h4>Atenção!</h4>
					#{multaBean.msg.warningMsg}
				</div>
			</h:panelGroup>


			<h:panelGroup rendered="#{multaBean.msg.emsg}">
				<div class="alert alert-error">
					<button type="button" class="close" data-dismiss="alert">x</button>
					<h4>Erro!</h4>
					#{multaBean.msg.erroMsg}
				</div>
			</h:panelGroup>



			<h:panelGroup rendered="#{multaBean.msg.smsg}">
				<div class="alert alert-success">
					<button type="button" class="close" data-dismiss="alert">x</button>
					<h4>Sucesso!</h4>
					#{multaBean.msg.sucessMsg}
				</div>
			</h:panelGroup>









			<h:form class="form-signin">

				<fieldset>
					<legend style="color: blue">Buscar Multa</legend>

					<h:panelGrid columns="2">



						<p:outputLabel value="Código do Leitor: " for="cl" />
						<h:inputText id="cl" label="Código do Leitor: "
							value="#{multaBean.usuario.id_usuario}" required="true"
							requiredMessage="*O Código do Usuário é obrigatório!">
						</h:inputText>



						<p:outputLabel value="Total Multa: " for="tm" />
						<h:inputText id="tm" label="Total Multa: "
							value="#{multaBean.multaTotal}" required="true" readonly="true"
							requiredMessage="*O Total da multa é obrigatório!">
						</h:inputText>



						<h:commandButton action="#{multaBean.consultarMulta}"
							value="Consultar Multa" class="btn btn-large btn-primary" />

						<h:commandButton action="#{multaBean.pagarMulta}"
							value="Pagar Multas" class="btn btn-large btn-primary" />



					</h:panelGrid>
				</fieldset>
			</h:form>


		</div>

	</ui:define>

</ui:composition>
